﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;

namespace Haushaltsbuch.Helpers
{
    public static class PasswordHelper
    {
        public static byte[] GetHash(string password)
        {
            var saltedPassword = password + "r940jvldöfkldsä3fidklä1fr";
            var bytes = Encoding.UTF8.GetBytes(saltedPassword);
            return new MD5CryptoServiceProvider().ComputeHash(bytes);
        }
    }
}